<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过滤器使用</title>
</head>
<body>
{{ user.username }}-{{ user.username|length }}
<div>{{ mytime|dformat }}</div>
</body>
</html>